<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
<!--将数组map，filter，reduce，every改写成箭头函数形式-->
<script type="text/javascript">
const arr = [1, 2, 3, 4, 5, 6]

    var a=0;
    const arr1 = arr.map(arr=>arr*1)
    console.log(arr1);

    const new_arr = arr.filter(arr=>a+1)
    console.log(new_arr);

    var sum = arr.reduce((sum,arr)=>sum+arr)
    console.log(sum);

    var isMatch = arr.every(arr=>arr)
    console.log(isMatch);

</script>

</body>
</html>